package com.gxwy.jiaoyi.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gxwy.jiaoyi.dao.JiaoYiDao;
import com.gxwy.jiaoyi.form.JiaoYi;

@Service
public class JiaoYiServiceImpl implements JiaoYiService {

	@Autowired
	private JiaoYiDao dao;
	
	@Transactional
	public void add(JiaoYi jy) {
		dao.add(jy);

	}

	@Transactional
	public JiaoYi findById(Integer id) {
		return dao.findById(id);
	}

	@Transactional
	public List<JiaoYi> chaxunmingxi(String zh, String qsrq, String jzrq) {
		return dao.chaxunmingxi(zh, qsrq, jzrq);
	}

	@Transactional
	public String findHuiDan() {
		return dao.findHuiDan();
	}

	@Transactional
	public List<JiaoYi> chaxunjiaoyimingxi(String yhzh, String qsrq, String jzrq) {
		return dao.chaxunjiaoyimingxi(yhzh, qsrq, jzrq);
	}

}
